import till.TagBuilder;


public class TagBuilderTester {

	public static void main(String[] args) {

		TagBuilder builder =  TagBuilder.createDefaultTagBuilder("br");
		builder.selfClosing(false).setAttribute("font", "verdana");
		builder.setAttribute("size", 10);
		builder.setAttribute("font", "arial");

		TagBuilder nestedTag =  TagBuilder.createDefaultTagBuilder("nested");
		nestedTag.selfClosing(false).setAttribute("ala", 22)
				.setAttribute("kasa", "piekna");

		builder.addNestedTag(nestedTag);

		TagBuilder nestedTag2 =  TagBuilder.createDefaultTagBuilder("nestedddd");
		nestedTag2.selfClosing(true).setAttribute("dfsdfdf", 22);

		builder.addNestedTag(nestedTag2);


		System.out.println(builder.build());

	}


}
